package com.ruoyi.gateway.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 主题映射对象 iot_topic_map
 *
 * @author 白向阳
 * @date 2025-09-28
 */
public class TopicMap extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 方向：up,down,upgrade */
    @Excel(name = "方向：up,down,upgrade")
    private String direction;

    /** 设备主题模式 */
    @Excel(name = "设备主题模式")
    private String deviceTopicPattern;

    /** 平台主题模式 */
    @Excel(name = "平台主题模式")
    private String platformTopicPattern;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setDirection(String direction)
    {
        this.direction = direction;
    }

    public String getDirection()
    {
        return direction;
    }

    public void setDeviceTopicPattern(String deviceTopicPattern)
    {
        this.deviceTopicPattern = deviceTopicPattern;
    }

    public String getDeviceTopicPattern()
    {
        return deviceTopicPattern;
    }

    public void setPlatformTopicPattern(String platformTopicPattern)
    {
        this.platformTopicPattern = platformTopicPattern;
    }

    public String getPlatformTopicPattern()
    {
        return platformTopicPattern;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("direction", getDirection())
            .append("deviceTopicPattern", getDeviceTopicPattern())
            .append("platformTopicPattern", getPlatformTopicPattern())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
